% function to verify the null hypothesis of the 
% goodness-of-fit tests (Chi-square and KS):
function checkNullHypothesis(stat, c)
    if (stat >= c)
	fprintf('The test does not fit!\nRejecting the null hypothesis!\n');
	fprintf('(%f >= %f)\n\n', stat, c);
    else
	fprintf('The value does not exceed the critical value c (%f < %f).\n', stat, c);
	fprintf('Null hypothesis accepted!\n\n');
    end
end
